home *** CD-ROM | disk | FTP | other *** search
/ SGI Hot Mix 17 / Hot Mix 17.iso / HM17_SGI / .bin / netscape / mailcap.nofork.hm17 < prev    next >
Text File  |  1997-07-23  |  12KB  |  245 lines

  1. # Copyright (c) 1991 Bell Communications Research, Inc. (Bellcore)
  2. # Permission to use, copy, modify, and distribute this material 
  3. # for any purpose and without fee is hereby granted, provided 
  4. # that the above copyright notice and this permission notice 
  5. # appear in all copies, and that the name of Bellcore not be 
  6. # used in advertising or publicity pertaining to this 
  7. # material without the specific, prior written permission 
  8. # of an authorized representative of Bellcore.  BELLCORE 
  9. # MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY 
  10. # OF THIS MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS IS", 
  11. # WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
  12. #
  13. # Mailcap file for Netscape
  14. #
  15. # Users may override or extend this with a .mailcap file in
  16. # their own directory.  Netscape will search both mailcap
  17. # files looking for a match.
  18. #
  19. # imgview currently can view SGI, TIFF, JFIF/JPEG, and GIF formats.
  20. # Netscape has builtin viewing support for GIF and JFIF and if the
  21. # mailcap entries for these are commented out, it will display those
  22. # images as a new page when downloaded.  However, for consistency
  23. # the default is to use the external viewer.
  24. #
  25. # First a note about syntax:
  26. #    The first token in a configuration line represents a mime type.
  27. #    A mime type is of the form "SubGroup/Item" and either token
  28. #    can be replaced by the wildcard character "*"
  29.  
  30. #    the second token is the command that you would run
  31. #    when the specified mime type is encountered.  An example
  32. #    would be "xv %s" where %s will be replaced by a filename
  33.  
  34. #    remaining tokens represent name value pairs.
  35.  
  36. #    the "test=" pair invokes the test command
  37. #    specified and checks the UNIX shell return code to see if the
  38. #    test passed.  If the test passes the mime mapping is made, otherwise
  39. #    the mapping is not made.
  40.  
  41. #    the "stream-buffer-size=" pair tells the application
  42. #    to use a popen command to invoke the program specified and to
  43. #    pipe all data into the command.  Only programs that can handle
  44. #    piped input can use this method.  When this method is used
  45. #    a "%s" should not be included in the command.  You should
  46. #    make sure that the program you wish to use can accept piped
  47. #    data by trying something like this before using it:
  48. #       cat "YOUR_DATA_FILE_HERE" | COMMAND_TO_TEST
  49.  
  50. #    You may continue lines by using the backslash character "\"
  51.  
  52. image/x-rgb; imgview -nofork %s; compose=imgworks %s; \
  53.     description="RGB Image"; \
  54.     x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
  55. image/x-sgi-bw; imgview -nofork %s; compose=imgworks %s; \
  56.     description="SGI b/w image"; \
  57.     x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
  58. image/x-sgi-rgba; imgview -nofork %s; compose=imgworks %s; \
  59.     description="SGI RGBA image"; \
  60.     x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
  61. image/x-sgi-image; imgview -nofork %s; compose=imgworks %s; \
  62.     description="SGI image"; \
  63.     x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
  64. image/x-bitmap; bitmap %s; description="X11 bitmap"; \
  65.     x11-bitmap="/usr/lib/Zmail/bitmaps/bitmap.xbm"
  66. image/x-xbitmap; bitmap %s; description="X Bitmap"; \
  67.     x11-bitmap="/usr/lib/Zmail/bitmaps/bitmap.xbm"
  68. image/x-xpm1; olpixmap %s; description="OL pixmap"; \
  69.     x11-bitmap="/usr/lib/Zmail/bitmaps/bitmap.xbm"
  70. image/x-xpixmap; pixmap %s; description="X pixmap"; \
  71.     x-mozilla-flags=save; Plugin; \
  72.     x11-bitmap="/usr/lib/Zmail/bitmaps/bitmap.xbm"
  73. image/x-png; ; description="PNG"; \
  74.     x-mozilla-flags=save; \
  75.     x11-bitmap="/usr/lib/Zmail/bitmaps/bitmap.xbm"
  76. image/x-MS-bmp; ; description="PNG"; \
  77.     x-mozilla-flags=save; \
  78.     x11-bitmap="/usr/lib/Zmail/bitmaps/bitmap.xbm"
  79. image/tiff; imgview -nofork %s; compose=imgworks %s; description="TIFF Image"; \
  80.     x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
  81. image/gif; imgview -nofork %s; compose=imgworks %s; description="GIF Image"; \
  82.      x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
  83. image/jpeg; imgview -nofork %s; compose=imgworks %s; description="JFIF Image";\
  84.      x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
  85. image/jpg; imgview -nofork %s; compose=imgworks %s; description="JFIF Image";\
  86.      x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
  87. image/x-photo-cd; imgview -nofork %s; compose=imgworks %s; \
  88.     description="Photo CD image"; \
  89.     x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
  90. image/*; imgview -nofork %s; compose=imgworks %s; description="basic image"; \
  91.     x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
  92.  
  93. x-music/x-midi;  soundplayer -nofork -nounique %s; \
  94.     description="Standard MIDI Music"; \
  95.     x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"
  96.  
  97. audio/x-aiff; soundplayer -nofork -nounique %s; compose=soundeditor %s;    \
  98.     description="AIFF Audio"; x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"
  99. audio/x-aifc; soundplayer -nofork -nounique %s; compose=soundeditor %s;    \
  100.     description="AIFC Audio"; x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"
  101. audio/x-next; soundplayer -nofork -nounique %s; compose=soundeditor %s;    \
  102.     description="NeXT Audio"; x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"
  103. audio/x-wav; soundplayer -nofork -nounique %s; compose=soundeditor %s;    \
  104.     description="WAV Audio"; x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"
  105. audio/x-mpeg; soundplayer -nofork -nounique %s; \
  106.         description="MPEG Audio"; x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"
  107. audio/x-pn-realaudio; raplayer %s; \
  108.         description="RealAudio "; x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"
  109. #
  110. # use this preferentially to do streaming audio if you have
  111. # the playulaw program
  112. #audio/basic; playulaw; stream-buffer-size=2000
  113. #
  114. # otherwise, if you don't have playulaw, use this
  115. audio/basic; soundplayer -nofork -nounique %s
  116.  
  117. # here is an interesting command that enables you to sit
  118. # in front of a different UNIX machine than the one where
  119. # you are running the Netscape Navigator and still here audio.
  120. #
  121. #audio/basic; rsh YOUR_HOST_HERE /usr/local/bin/playulaw; \
  122. #       test=test `hostname`x != YOUR_HOST_HEREx; stream-buffer-size=2000
  123.  
  124. audio/*; soundplayer -nofork -nounique %s
  125. #
  126. #
  127. # Movieplayer understands SGI, QuickTime, MPEG Video, and MPEG Systems
  128. #
  129. video/x-sgi-movie; movieplayer -v -nofork %s; compose=moviemaker %s; \
  130.     description="SGI Video"; \
  131.     x11-bitmap="/usr/lib/Zmail/bitmaps/movie.xbm"
  132. video/mpeg; movieplayer -v -nofork %s; compose=moviemaker %s; \
  133.     description="MPEG Video"; \
  134.     x11-bitmap="/usr/lib/Zmail/bitmaps/movie.xbm"
  135. video/x-mpeg2; movieplayer -v -nofork %s; compose=moviemaker %s; \
  136.     description="MPEG2 Video"; \
  137.     x11-bitmap="/usr/lib/Zmail/bitmaps/movie.xbm"
  138. video/x-mpeg-system; movieplayer -v -nofork %s; compose=moviemaker %s; \
  139.     description="MPEG Movie"; \
  140.     x11-bitmap="/usr/lib/Zmail/bitmaps/movie.xbm"
  141. video/quicktime; movieplayer -v -nofork %s; compose=moviemaker %s; \
  142.     description="Quicktime Video"; \
  143.     x11-bitmap="/usr/lib/Zmail/bitmaps/movie.xbm"
  144. #
  145. application/x-sh; /bin/sh -f %s; description="Bourne shell"
  146. application/x-csh; /bin/csh -f %s; description="C shell"
  147. application/x-xdma; /usr/bin/X11/xnetview %s; \
  148.     description="StreamWorks Viewer"
  149. application/x-enterlicense; /usr/etc/enterlicense %s; \
  150.     description="Software Licensing document"
  151. application/x-licensemgr; /usr/etc/LicenseManager %s; \
  152.     description="Software License Installation"
  153. application/x-install; /usr/sbin/SoftwareManager -F %s \
  154.     -Vauto_inst_new:F -Vauto_inst_upgrades:F -Vbackground:F ; \
  155.     description="Automatic inst installation"
  156. application/x-showcase; showcase -v -f %s; \
  157.     compose=showcase %s; description="Showcase document"; \
  158.     x11-bitmap="/usr/lib/Zmail/bitmaps/showcase.xbm"
  159. application/x-framemaker; /usr/frame/bin/fmclient -f %s; \
  160.     compose=fmclient -f %s; description="FrameMaker document"; \
  161.     x11-bitmap="/usr/lib/Zmail/bitmaps/frame.xbm"
  162. application/x-wingz; Wingz %s; compose=Wingz %s; \
  163.     description="Wingz document"; \
  164.     x11-bitmap="/usr/lib/Zmail/bitmaps/wingz.xbm"
  165. application/x-SYLK; Wingz %s; compose=Wingz %s; \
  166.     description="Spreadsheet in SYLK format"; \
  167.     x11-bitmap="/usr/lib/Zmail/bitmaps/wingz.xbm"
  168. graphics/x-inventor; /usr/sbin/webspace -remote %s -URL %u ; \
  169.     x-mozilla-flags=save; \
  170.     description="Inventor file"; \
  171.     x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
  172. application/x-inventor; /usr/sbin/webspace -remote %s -URL %u ; \
  173.     x-mozilla-flags=plugin:libcosmoplayer.so; \
  174.     description="Inventor file"; \
  175.     x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
  176. model/vrml;  /usr/sbin/webspace -remote %s -URL %u ; \
  177.     x-mozilla-flags=plugin:libcosmoplayer.so; \
  178.     description="VRML document"
  179. x-world/x-vrml;  /usr/sbin/webspace -remote %s -URL %u ; \
  180.     x-mozilla-flags=plugin:libcosmoplayer.so; \
  181.     description="VRML document"
  182. application/postscript; /usr/bin/X11/xpsview %s; \
  183.     description="PostScript Document";
  184. application/x-annotator; /usr/sbin/annotator -v -r %s; \
  185.     description="IRIS Annotator file"; compose=/usr/sbin/annotator %s; \
  186.     x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
  187. application/x-tardist; tardist %s; description="SGI inst tar distribution"
  188. application/pdf; acroread %s; description="Portable Document Format"
  189. application/x-iconbook; /usr/sbin/iconbook; \
  190.     description="IconBook"; \
  191.     x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
  192. application/x-inpview; /usr/lib/InPerson/inpview -wbfile %s; \
  193.     description="InPerson Whiteboard file"; \
  194.     x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
  195. application/x-inperson-call; /usr/lib/InPerson/inpcontrol "`cat %s`"; \
  196.     description="An InPerson Call Jumper"
  197. application/x-mailfolder; /usr/bin/X11/zmail -gui -folder %s; \
  198.         description="Zmail folder file"; compose=/usr/bin/X11/zmail -gui %s; \
  199.         x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
  200. application/x-ppages; /usr/sbin/peoplepages; \
  201.     description="InPerson PeoplePages"; \
  202.     x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
  203. application/x-dirview; /usr/sbin/dirview `cat %s`; \
  204.         description="desktopManager Directory View"; \
  205.         x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
  206. application/x-rapidapp; /usr/sbin/rapidapp %s; \
  207.     description="RapidApp file"
  208. application/x-wsNt; wsNt -URL %u -remote %s ; \
  209.     description="Surf N Tell data stream"
  210. application/x-csNt; wsNt -URL %u -remote %s ; \
  211.     description="Surf N Tell control"
  212. application/x-sdr; /usr/local/lib/netscape/sdr-launch %u %s ; \
  213.     description="Session Directory Tool Launcher"
  214. application/x-sgi-glossary; /usr/sysadm/bin/glossary %s; \
  215.     description="System Administration Glossary"
  216. x-conference/x-cooltalk; /usr/local/lib/netscape/cooltalk/cooltalk %s
  217.  
  218. application/x-excel; /usr/local/lib/netscape/swinexec %s excel; \
  219.     description="Microsoft Excel Document";
  220. application/msexcel; /usr/local/lib/netscape/swinexec %s excel; \
  221.     description="Microsoft Excel Document";
  222. application/x-dos_ms_excel; /usr/local/lib/netscape/swinexec %s excel; \
  223.     description="Microsoft Excel Document";
  224. application/x-dos_ms_word; /usr/local/lib/netscape/swinexec %s winword; \
  225.     description="Microsoft Word-for-Windows Document";
  226. application/msword; /usr/local/lib/netscape/swinexec %s winword; \
  227.     description="Microsoft Word-for-Windows Document";
  228. application/mspowerpoint; /usr/local/lib/netscape/swinexec %s powerpnt; \
  229.     description="Microsoft PowerPoint Document";
  230. application/x-dos_ms_powerpnt; /usr/local/lib/netscape/swinexec %s powerpnt; \
  231.     description="Microsoft PowerPoint Document";
  232. application/x-dos_ms_access; /usr/local/lib/netscape/swinexec %s msaccess; \
  233.     description="Microsoft Access Document";
  234. application/x-dos_ms_msaccess; /usr/local/lib/netscape/swinexec %s msaccess; \
  235.     description="Microsoft Access Document";
  236. application/x-dos_fmpro; /usr/local/lib/netscape/swinexec %s fmpro; \
  237.     description="FileMaker Pro Document";
  238. application/x-dos_claris_fm; /usr/local/lib/netscape/swinexec %s fmpro; \
  239.     description="FileMaker Pro Document";
  240.  
  241. video/mvptr;/usr/sbin/movieplayer `cat %s`
  242.  
  243. default; cat %s; copiousoutput
  244.